package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class SetClauseList {

    private int beginIndex;
    private int endIndex;
    private List<SetClause> setClauseList;

    public SetClauseList(List<SetClause> setClauseList) {
        this.beginIndex = setClauseList.get(0).getBeginIndex();
        this.endIndex= setClauseList.get(setClauseList.size() - 1).getEndIndex();
        this.setClauseList = setClauseList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return setClauseList.size();
    }

    public SetClause get(int index) {
        return setClauseList.get(index);
    }

}
